﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZR.Model;

namespace ImportPlcPointPosition.Models
{
    [SugarTable("cks_plc_action")]
    public class CksPlcActions:BaseEntity
    {
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 1数据采集 2 工艺路线
        /// </summary>
        public int ActionType { get; set; } = 1;

        public string Notes { get; set; } = string.Empty;

        public int PlcId { get; set; }

        public int ReadDB { get; set; }

        public int WriteDB { get; set; }

        public int ActionId { get; set; }



        public DateTime CreatedTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 业务ID (ActionType不同代表含义不同  )
        /// </summary>
        public int BusinessId { get;  set; }
    }
}
